package tazadum.util;

import tazadum.engine.math.Vector;

public class ColorUtil {
	public static Vector toVector(final int rgb) {
		final float r = ((rgb >> 16) & 0xff) / 256.0f;
		final float g = ((rgb >> 8) & 0xff) / 256.0f;
		final float b = ((rgb >> 0) & 0xff) / 256.0f;

		return new Vector(r, g, b);
	}
}
